<?php

/**
 * Copyright 2008 William J. Szerdy Jr.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * @author Bill Szerdy <bszerdy@gmail.com>
 *
 * 12.05.2008 - bszerdy : Created.
 *
 */

include_once 'config.php';

$current_level = isset($_POST['current_level']) ? $_POST['current_level'] : 0;
$current_level++;

$blind = $_SESSION['blinds'][$current_level];

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<title>Poker Blinds</title>
		<script type="text/javascript" src="js/prototype.js"></script>
		<script type="text/javascript" src="js/jsProgressBarHandler.js"></script>
		<script type="text/javascript" src="js/timer.js"></script>
		<link type="text/css" rel="stylesheet" href="style/pokerblinds.css" media="screen" />
	</head>
	<body onload="Start(<?php echo($blind->time); ?>)" onunload="Stop()">
		<a id="tooCool" href="http://www.w3junkies.com/toocool/">Too Cool for Internet Explorer</a>
		<div id="main">
			<form id="blindmain" action="index.php" method="post">
				<input type="hidden" id="highest_level" name="highest_level" value="<?php echo(HIGHEST_LEVEL) ?>" />
				<input type="hidden" id="current_level" name="current_level" value="<?php echo($blind->level) ?>" />
				<label for="level">Level</label><br />
				<input type="text" id="level" name="level" value="<?php echo($blind->level); ?>" size="5" /><br /><br />
				<label for="timer">Timer</label><br />
				<input type="text" id="timer" name="timer" size="15" /><br /><br />
				<label for="blinds">Blind Levels</label><br />
				<input type="text" id="blinds" name="blinds" value="<?php echo($blind->small_blind.'/'.$blind->big_blind); ?>" size="10" /><br /><br />
				<label for="ante">Ante</label><br />
				<input type="text" id="ante" name="ante" value="<?php echo($blind->ante); ?>" size="10" /><br /><br /><br />
				<span class="progressBar" id="element1">0%</span><br /><br />
				<input type="button" id="stop" name="stop" value="Stop" onclick="Stop()" />
				<input type="button" id="reset" name="reset" value="Reset" onclick="Reset('<?php echo($_SESSION['MODE'][constant('CURRENT_MODE')]); ?>')" />
			</form>
		</div>
		<p id="table-title">Poker Blinds</p>
        <div style="float:right;margin-right:65px;"><a style="text-decoration:none;color:#fff;top:0;position:absolute;" href="config-blinds.php">config >></a></div>
	</body>
</html>
	